<template>
    <h2 class="ctitle" :style="{
        background:'url('+icon+') left center no-repeat'
    }">{{text}}</h2>
</template>
<script>
export default {
    props:{
        text:{
            type: String,
            default: "名师风采"
        },
        icon:{
            type: String,
            default: require("@/assets/imgs/jinpaijiangshi@2x.png")
        }
    }
}
</script>
<style scoped lang="less">
    .ctitle{
        font-size: 30px;
        line-height: 30px;
        color: @gray-8;
        font-weight: normal;
        padding-left: 37px;
        margin-bottom: 15px;
        background-size: 28px!important;
    }
</style>>